package com.wu.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.wu.pojo.MaterialsValues;
import com.wu.mappers.MaterialsValuesMapper;
import com.wu.service.MaterialsValuesService;

import java.util.List;

/**
@author sun
@date 2022/3/27 - 23:06
*/
@Service
public class MaterialsValuesServiceImpl implements MaterialsValuesService{

    @Resource
    private MaterialsValuesMapper materialsValuesMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return materialsValuesMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(MaterialsValues record) {
        return materialsValuesMapper.insert(record);
    }

    @Override
    public int insertSelective(MaterialsValues record) {
        return materialsValuesMapper.insertSelective(record);
    }

    @Override
    public MaterialsValues selectByPrimaryKey(Integer id) {
        return materialsValuesMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(MaterialsValues record) {
        return materialsValuesMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MaterialsValues record) {
        return materialsValuesMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<MaterialsValues> findMaterialsValues(MaterialsValues materialsValues) {
        return materialsValuesMapper.findMaterialsValues(materialsValues);
    }

}
